<template>
 <div class="card-wrap">
   <div class="title">
     <svg-icon :name="titleIcon" class="title-icon" width="22px" height="22px"></svg-icon>
     <span class="text">{{titleText}}</span>
   </div>
   <slot></slot>
 </div>
</template>

<script>
export default {
  name: "TitleCard",
  props:{
    titleText:{
      type:String,
      default: ''
    },
    titleIcon:{
      type:String,
      default: 'tianranqi'
    }
  }
}
</script>

<style scoped lang="scss">
.card-wrap{
  border-radius: 4px;
  width: 100%;
  height: 100%;
  background: #ffffff;
  .title{
    height: 74px;
    /* 标题背景 */
    background: #EDEDED;
    border-radius: 4px 4px 0px 0px;

    display: flex;
    align-items: center;
    padding-left: 24px;
    box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.16);

    .text{
      font-family: 思源黑体;
      font-size: 20px;
      font-weight: 900;
      letter-spacing: 0.05em;
      margin-left: 18px;
      color: #C91500;
    }
  }
}

</style>
